package cn.ym.mall.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 合同类
 */
public class Contract implements Serializable {
    private Integer coid;                //合同编号(id)
    private Integer sid;                 //商店id
    private LocalDateTime cocreateTime; //合同签订时间
    private String cocontent;           //合同内容
    private Integer coyear;             //合同年限
    private Double codividend;          //分红

    public Contract() {
    }

    public Contract(Integer sid, LocalDateTime cocreateTime, String cocontent, Integer coyear, Double codividend) {
        this.sid = sid;
        this.cocreateTime = cocreateTime;
        this.cocontent = cocontent;
        this.coyear = coyear;
        this.codividend = codividend;
    }

    public Contract(Integer coid, Integer sid, LocalDateTime cocreateTime, String cocontent, Integer coyear, Double codividend) {
        this.coid = coid;
        this.sid = sid;
        this.cocreateTime = cocreateTime;
        this.cocontent = cocontent;
        this.coyear = coyear;
        this.codividend = codividend;
    }

    public Integer getCoid() {
        return coid;
    }

    public void setCoid(Integer coid) {
        this.coid = coid;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public LocalDateTime getCocreateTime() {
        return cocreateTime;
    }

    public void setCocreateTime(LocalDateTime cocreateTime) {
        this.cocreateTime = cocreateTime;
    }

    public String getCocontent() {
        return cocontent;
    }

    public void setCocontent(String cocontent) {
        this.cocontent = cocontent;
    }

    public Integer getCoyear() {
        return coyear;
    }

    public void setCoyear(Integer coyear) {
        this.coyear = coyear;
    }

    public Double getCodividend() {
        return codividend;
    }

    public void setCodividend(Double codividend) {
        this.codividend = codividend;
    }

    @Override
    public String toString() {
        return "Contract{" +
                "coid=" + coid +
                ", sid=" + sid +
                ", cocreateTime=" + cocreateTime +
                ", cocontent='" + cocontent + '\'' +
                ", coyear=" + coyear +
                ", codividend=" + codividend +
                '}';
    }
}
